package com.liqw.auto.runner;

import com.liqw.Constant;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

// ======================== 启动后Runner ========================
@Slf4j
@Component
@Order(1)
class CustomAppRunner implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) {
        System.out.println(Constant.getStepStr("CustomAppRunner.run") + "CustomAppRunner - run : 启动后任务执行");
    }
}